package com.pti.usermanager.service.api;

import com.github.pagehelper.PageInfo;
import com.pti.usermanager.dao.po.OrgPo;
import com.pti.usermanager.dao.po.PostPo;
import com.pti.usermanager.dao.po.UserPo;
import com.pti.usermanager.web.dto.request.*;
import com.pti.usermanager.web.dto.response.ResultResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName: PostService
 * @Author: dongzhipeng
 * @Description: 岗位业务层
 * @Date: 2019/1/17
 */
public interface PostService {

    /**树查询岗位*/
    ResultResponse findPostByDeptId(Long usrId, Long orgId);
    /**
     * create by: dongzhipeng
     * description:岗位详情接口
     * create time: 17:24 2019/1/26
     *
     * @Param: postId
     * @return com.pti.usermanager.web.dto.response.ResultResponse
     */
    ResultResponse findAllByPostId(Long postId);
    /**
     * create by: dongzhipeng
     * description:添加岗位接口
     * create time: 17:25 2019/1/26
     *
     * @Param: savePostRequest
     * @return com.pti.usermanager.web.dto.response.ResultResponse
     */
    ResultResponse savePost(SavePostRequest savePostRequest);
    /**
     * create by: dongzhipeng
     * description:修改岗位接口
     * create time: 17:26 2019/1/26
     *
     * @Param: updatePostRequest
     * @return com.pti.usermanager.web.dto.response.ResultResponse
     */
    ResultResponse updatePost(UpdatePostRequest updatePostRequest);
    /**
     * create by: dongzhipeng
     * description:删除岗位接口
     * create time: 17:28 2019/1/26
     *
     * @Param: compId
     * @return com.pti.usermanager.web.dto.response.ResultResponse
     */
    ResultResponse delPost(Long postIds);
    /**
     * create by: dongzhipeng
     * description:分配用户接口
     * create time: 17:28 2019/1/26
     *
     * @Param: saveUserByPidAndUid
     * @return com.pti.usermanager.web.dto.response.ResultResponse
     */
    ResultResponse saveUserByPidAndUid(SaveUserByPidAndUid saveUserByPidAndUid);

}
